
//
//  DiarySecondModel.m
//  土巴兔
//
//  Created by 千锋 on 16/1/5.
//  Copyright (c) 2016年 IOS1503薛凯. All rights reserved.
//

#import "DiarySecondModel.h"

@implementation DiarySecondModel
- (instancetype)initWithDictionary:(NSDictionary*)dic{
    if (self=[super init]) {
        self.owner_id=[dic objectForKey:@"owner_id"];
        self.cover_image=[dic objectForKey:@"cover_image"];
        self.ID=[dic objectForKey:@"id"];
        self.progress_id=[dic objectForKey:@"progress_id"];
        self.area=[dic objectForKey:@"area"];
        
        self.owner_name=[dic objectForKey:@"owner_name"];
        self.house_type=[dic objectForKey:@"house_type"];
        self.diary_content=[dic objectForKey:@"diary_content"];
        self.small_tag_name=[dic objectForKey:@"small_tag_name"];
        self.comment_number=[dic objectForKey:@"comment_number"];
        
        self.name=[dic objectForKey:@"name"];
        self.diary_number=[dic objectForKey:@"diary_number"];
        self.product_price=[dic objectForKey:@"product_price"];
        self.owner_avatar=[dic objectForKey:@"owner_avatar"];
        self.type_name=[dic objectForKey:@"type_name"];
        
        self.view_num=[dic objectForKey:@"view_num"];
        self.recent_time=[dic objectForKey:@"recent_time"];
        self.house_type_name=[dic objectForKey:@"house_type_name"];
        self.toptag_name=[dic objectForKey:@"toptag_name"];
        self.toptag_color=[dic objectForKey:@"toptag_color"];
        
        self.collect_num=[dic objectForKey:@"collect_num"];
        
        
        self.style=[[NSMutableArray alloc] initWithCapacity:0];
        self.diary_image=[[NSMutableArray alloc] initWithCapacity:0];
    }
    return self;
}
@end
